﻿using System;
using System.Collections.Generic;

namespace gvPoco.Data
{
    /// <summary>
    /// Describes the ID and type of each column.
    /// </summary>
    public class Column
    {
        /// <summary>
        /// String ID of the column. Must be unique in the table. Use basic alphanumeric characters, so the host page does not require fancy escapes to access the column in JavaScript. Be careful not to choose a JavaScript keyword
        /// </summary>
        public string id { get; set; }

        /// <summary>
        /// String value that some visualizations display for this column.
        /// </summary>
        public string label { get; set; }

        /// <summary>
        /// Data type of the data in the column
        /// </summary>
        public string type { get; set; }

        /// <summary>
        /// String pattern that was used by a data source to format numeric, date, or time column values. This is for reference only; you probably won't need to read the pattern, and it isn't required to exist. The Google Visualization client does not use this value (it reads the cell's formatted value). If the DataTable has come from a data source in response to a query with a format clause, the pattern you specified in that clause will probably be returned in this value. The recommended pattern standards are the ICU DecimalFormat and SimpleDateFormat.
        /// </summary>
        public string pattern { get; set; }

        /// <summary>
        /// An object that is a map of custom values applied to the cell. These values can be of any JavaScript type. If your visualization supports any cell-level properties, it will describe them; otherwise, this property will be ignored.
        /// </summary>
        public string p { get; set; }
    }

}